import static org.junit.Assert.*;

import org.junit.Test;

public class tritypTest {
    trityp tri1 = new trityp();
    trityp tri2 = new trityp();
    trityp tri3 = new trityp();
    trityp tri4 = new trityp();
    trityp tri5 = new trityp();
    trityp tri6 = new trityp();
    trityp tri7 = new trityp();
    trityp tri8 = new trityp();
    // triOut is output from the routine:
    //    Triang = 1 if triangle is scalene
    //    Triang = 2 if triangle is isosceles
    //    Triang = 3 if triangle is equilateral
    //    Triang = 4 if not a triangle
    @Test
    public void triang() {
        assertEquals(4,tri1.Triang(-1,-2,-3));
        assertEquals(4,tri2.Triang(2,2,4));
        assertEquals(2,tri3.Triang(2,2,3));
        assertEquals(3,tri4.Triang(3,3,3));
        assertEquals(4,tri5.Triang(1,2,3));
        assertEquals(2,tri6.Triang(2,3,2));
        assertEquals(2,tri7.Triang(3,2,2));
        assertEquals(1,tri8.Triang(2,3,4));
    }
}